package org.indi.graduatemanagement.common.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class UserDto implements Serializable {


    private Long id;

    @NotBlank(message = "用户名不能为空")
    private String userName;

    @NotBlank(message = "密码不能为空")
    private String password;

    @NotBlank(message = "角色不能为空")
    private String roles;

    @NotBlank(message = "权限不能为空")
    private String permission;

    private Integer status;

    private LocalDateTime created;

    private LocalDateTime lastLogin;
}
